<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="../lib/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../css/document/gth-files.css">
    <script type="text/javascript" src="../js/jquery-3.6.0.js"></script>
    <script src="../layer-v3.5.1/layer-v3.5.1/layer/layer.js"></script>
    <script type="text/javascript" src="../js/document/gth-files.js"></script>
    <title>Document</title>
</head>
<body onload="show()">
<div id="box">
    <form class="layui-form" th:action="@{/document/upload}" method="post" enctype="multipart/form-data">
        <div id="main" th:each="ff:${fil}">
            <input type="hidden" th:value="${ff.getParentId()}" name="parentId">
            <input type="hidden" th:value="${ff.getId()}" name="id">
            <th>所在部门：</th>
            <input type="hidden" th:value="${ff.getDp_id()}" name="dp_id">

            <input type="hidden" th:value="${session.user.getId()}" class="u_id"  name="u_id">

            <td><input style="width: 90%;" name="title" required lay-verify="required" autocomplete="off"
                       class="layui-input" th:placeholder="${ff.getDepartment().getDepartmentname()}" readonly></td>
            <tr>

                <th>路径：</th>
                <td><input style="width: 90%;" class="layui-input path" type="text" placeholder=""  readonly></td>
            </tr>
            <tr>
                <input type="file" name="aaa" class="aaa">
            </tr>

        </div>
        <div id="bottom">
            <center style="margin-top: 2px;">
                <td align="center"><input style="margin-top: 40px;margin-left: -10px;height: 32px;line-height: 32px"  type="submit" class="layui-btn"
                                          value="上传">
            </center>
        </div>
    </form>
</div>
</body>
</html>